<?php
session_start();

unset($_SESSION['username'] );
unset($_SESSION['password']);
unset($_SESSION['id'] );
unset($_SESSION['fname']);
unset($_SESSION['cart']);
unset($_SESSION['tabadmin']);
unset($_SESSION['type']);
unset($_SESSION['totalamount']);

session_destroy();

header("Location:index.php"); //Redirect the user	
?>